package org.tech4j.edi.api.factory;

import org.tech4j.common.spi.ExtensionLoader;

/**
 * @program: tech4j
 * @description:
 * @author: YuKai Fan
 * @create: 2025/3/7 21:57
 **/
public class RetryHandleFactoryProxy {

    private RetryHandleFactoryProxy() {

    }

    /**
     * 获取实例
     * @param name
     * @return
     */
    public static RetryHandleFactory newInstance(final String name) {
        return ExtensionLoader.getExtensionLoader(RetryHandleFactory.class)
                .getJoin(name);
    }
}
